import axios from "axios";
import { api_urls } from "./urls";

export const invoice_api = {
    deleteInvoice(id) {
        return axios.post(api_urls.invoice.delete, {id: id})
    },
    pageInvoice(invoiceReq) {
        return axios.post(api_urls.invoice.page, invoiceReq)
    },
    updateInvoice(invoice) {
        return axios.post(api_urls.invoice.update, invoice)
    },
    createInvoice(invoice) {
        return axios.post(api_urls.invoice.create, invoice)
    },
}

